ydz ='''
cron: 50 */30 8-22 * * *
new Env('f阅读赚阅读');
活动入口微信打开：http://5851249352.goeedpp.cn/?jgwq=3343316&goid=itrb
下载地址：https://www.123pan.com/s/xzeSVv-IHpfv.html
公告地址：http://175.24.153.42:8881/getmsg?type=ydz

使用方法：
1.活动入口,微信打开：http://5851249352.goeedpp.cn/?jgwq=3343316&goid=itrb
2.打开活动入口，抓包主页cookie中的7bfe3c8f4d51851参数,
或者getinfo或者其他接口headers请求头中的a_h_n，这个键的值中，’|‘后就是cookie
例如：http%3A%2F%2F51111129.tvyatdp.cn%2F%3Fjgwq%3D3311116%26goid%3Ditrb/d8cb0b76xxxxx
d8cb0b76xxxxx就是ck
3.青龙环境变量菜单，添加本脚本环境变量
名称 ：ydz_config
单个账户参数： ['name|ck|key|uids']
例如：['账户1|dxxxxx|xxxxx|UID_xxxx']
多个账户['name|ck|key|uids','name|ck|key|uids']
例如：['账户1|dxxxxx|xxxxx|UID_xxxx','账户2|dxxxxx|xxxxx|UID_xxxx']
参数说明与获取：
name:相当于备注随意填写，不含有’|‘就可以
ck:打开活动入口，抓包主页cookie中的7bfe3c8f4d51851参数,
或者getinfo或者其他接口headers请求头中的a_h_n，这个键的值中，’/‘后就是cookie
例如：http%3A%2F%2F51111129.tvyatdp.cn%2F%3Fjgwq%3D3311116%26goid%3Ditrb/d8cb0b76xxxxx
d8cb0b76xxxxx就是ck
key:每个账号的推送标准，每个账号全阅读只需要一个key,多个账号需要多个key,key永不过期。
为了防止恶意调用key接口，限制每个ip每天只能获取一个key。手机开飞行模式10s左右可以变更ip重新获取key
通过浏览器打开链接获取:http://175.24.153.42:8882/getkey
uids:wxpusher的参数，当一个微信关注了一个wxpusher的推送应用后，会在推送管理后台(https://wxpusher.zjiecode.com/admin/main)的'用户管理-->用户列表'中显示
用户在推送页面点击’我的-->我的UID‘也可以获取

4.青龙环境变量菜单，添加本脚wxpusher环境变量(不需要重复添加)
青名称 ：push_config
参数 ：{"printf":0,"threadingf":1,"appToken":"xxxx"}
例如：{"printf":0,"threadingf":1,"appToken":"AT_r1vNXQdfgxxxxxscPyoORYg"}
参数说明：
printf 0是不打印调试日志，1是打印调试日志
threadingf:并行运行账号参数 1并行执行，0顺序执行，并行执行优点，能够并行跑所以账号，加快完成时间，缺点日志打印混乱。
appToken 这个是填wxpusher的appToken

5.提现标准默认是3000，需要修改，请在本脚本最下方，按照提示修改
'''#line:42
import time #line:43
import hashlib #line:44
import json #line:45
import random #line:46
import requests #line:47
import re #line:48
import os #line:49
import threading #line:50
from urllib .parse import unquote ,quote ,urlparse ,parse_qs #line:51
checkDict ={'Mzg2MTI0Mzc1Nw==':['0','0'],'Mzg5NjcyMzgyOA==':['0','0'],'MzUyMzk1MTAyNg==':['0','0'],'MzI3MTA5MTkwNQ==':['0','0'],'MzIxNjEzMDg2OQ==':['0','0'],'MzI1MDAwNDY1NA==':['0','0'],'MjM5NjY4Mzk5OQ==':['0','0'],'Mzg4OTA1MzI0Ng==':['0','0'],'MzI0MjE5MTc0OA==':['0','0'],}#line:63
def getmsg ():#line:66
    O00O0OO0OOO000000 ='v1.3f'#line:67
    OOO00000OOO0OO000 =''#line:68
    try :#line:69
        O0000O0OOOOOO000O ='http://175.24.153.42:8881/getmsg'#line:70
        O00OOO000O00O0OOO ={'type':'ydz'}#line:71
        OOO00000OOO0OO000 =requests .get (O0000O0OOOOOO000O ,params =O00OOO000O00O0OOO )#line:72
        OOOO0OOO000OOOOOO =OOO00000OOO0OO000 .json ()#line:73
        OOO0OO000O0OOOOO0 =OOOO0OOO000OOOOOO .get ('version')#line:74
        OOOO0000O000OO00O =OOOO0OOO000OOOOOO .get ('gdict')#line:75
        O0O0OO0OO000OOOOO =OOOO0OOO000OOOOOO .get ('gmmsg')#line:76
        print ('系统公告:',O0O0OO0OO000OOOOO )#line:77
        print (f'最新版本{OOO0OO000O0OOOOO0}当前版本{O00O0OO0OOO000000}')#line:78
        print (f'系统的公众号字典{len(OOOO0000O000OO00O)}个:{OOOO0000O000OO00O}')#line:79
        print (f'本脚本公众号字典{len(checkDict.values())}个:{list(checkDict.keys())}')#line:80
        print ('='*50 )#line:81
    except Exception as O0000O000OO00000O :#line:82
        print (OOO00000OOO0OO000 .text )#line:83
        print (O0000O000OO00000O )#line:84
        print ('公告服务器异常')#line:85
def push (OOOO0OO000OOO00O0 ,OOOO0O0000OOO0O00 ,O0OOO0OO0O0OOOOOO ,O0O00OOO0O0000O00 ,OOOOOO0O000000O00 ,O00O0O0OO000OOO0O ):#line:88
    OO00OO00OO000OOOO ='''<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<style type=text/css>
   body {
   	background-image: linear-gradient(120deg, #fdfbfb 0%, #a5d0e5 100%);
    background-size: 300%;
    animation: bgAnimation 6s linear infinite;
}
@keyframes bgAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
</style>
</head>
<body>
<p>TEXT</p><br>
<p><a href="http://175.24.153.42:8882/lookstatus?key=KEY&type=TYPE">查看状态</a></p><br>
<p><a href="http://175.24.153.42:8882/lookwxarticle?key=KEY&type=TYPE&wxurl=LINK">点击阅读检测文章</a></p><br>
</body>
</html>
    '''#line:113
    OO00OOO0O000OO0OO =OO00OO00OO000OOOO .replace ('TITTLE',OOOO0OO000OOO00O0 ).replace ('LINK',OOOO0O0000OOO0O00 ).replace ('TEXT',O0OOO0OO0O0OOOOOO ).replace ('TYPE',O0O00OOO0O0000O00 ).replace ('KEY',O00O0O0OO000OOO0O )#line:115
    OO0O0OO00O0OOO0O0 ={"appToken":appToken ,"content":OO00OOO0O000OO0OO ,"summary":OOOO0OO000OOO00O0 ,"contentType":2 ,"uids":[OOOOOO0O000000O00 ]}#line:122
    OO0OO0O0OOOOO0OO0 ='http://wxpusher.zjiecode.com/api/send/message'#line:123
    try :#line:124
        O0000000OOO0OO0O0 =requests .post (url =OO0OO0O0OOOOO0OO0 ,json =OO0O0OO00O0OOO0O0 ).text #line:125
        print (O0000000OOO0OO0O0 )#line:126
        return True #line:127
    except :#line:128
        print ('推送失败！')#line:129
        return False #line:130
def getinfo (O0O0O0000O0000OO0 ):#line:133
    try :#line:134
        O0O000OOOOOO0O0O0 =requests .get (O0O0O0000O0000OO0 )#line:135
        OOO0OO00OOOO00O00 =re .sub ('\s','',O0O000OOOOOO0O0O0 .text )#line:137
        O00OO00000O00OO0O =re .findall ('varbiz="(.*?)"\|\|',OOO0OO00OOOO00O00 )#line:138
        if O00OO00000O00OO0O !=[]:#line:139
            O00OO00000O00OO0O =O00OO00000O00OO0O [0 ]#line:140
        if O00OO00000O00OO0O ==''or O00OO00000O00OO0O ==[]:#line:141
            if '__biz'in O0O0O0000O0000OO0 :#line:142
                O00OO00000O00OO0O =re .findall ('__biz=(.*?)&',O0O0O0000O0000OO0 )#line:143
                if O00OO00000O00OO0O !=[]:#line:144
                    O00OO00000O00OO0O =O00OO00000O00OO0O [0 ]#line:145
        OOO00OO0O00OO00O0 =re .findall ('varnickname=htmlDecode\("(.*?)"\);',OOO0OO00OOOO00O00 )#line:146
        if OOO00OO0O00OO00O0 !=[]:#line:147
            OOO00OO0O00OO00O0 =OOO00OO0O00OO00O0 [0 ]#line:148
        OOOO0OO0OOO0OOOOO =re .findall ('varuser_name="(.*?)";',OOO0OO00OOOO00O00 )#line:149
        if OOOO0OO0OOO0OOOOO !=[]:#line:150
            OOOO0OO0OOO0OOOOO =OOOO0OO0OOO0OOOOO [0 ]#line:151
        OO0000O00OO0O0OOO =re .findall ("varmsg_title='(.*?)'\.html\(",OOO0OO00OOOO00O00 )#line:152
        if OO0000O00OO0O0OOO !=[]:#line:153
            OO0000O00OO0O0OOO =OO0000O00OO0O0OOO [0 ]#line:154
        O000OOO0OO00O0O00 =f'公众号唯一标识：{O00OO00000O00OO0O}|文章:{OO0000O00OO0O0OOO}|作者:{OOO00OO0O00OO00O0}|账号:{OOOO0OO0OOO0OOOOO}'#line:155
        print (O000OOO0OO00O0O00 )#line:156
        return OOO00OO0O00OO00O0 ,OOOO0OO0OOO0OOOOO ,OO0000O00OO0O0OOO ,O000OOO0OO00O0O00 ,O00OO00000O00OO0O #line:157
    except Exception as OOOO0O00OOOOOOOO0 :#line:158
        print (OOOO0O00OOOOOOOO0 )#line:159
        print ('异常')#line:160
        return False #line:161
class WXYD :#line:164
    def __init__ (O0OO0O000OO0OO00O ,OOO0O00000OO0OOOO ):#line:165
        O0OO0O000OO0OO00O .name =OOO0O00000OO0OOOO [0 ]#line:167
        O0OO0O000OO0OO00O .ck =OOO0O00000OO0OOOO [1 ]#line:168
        O0OO0O000OO0OO00O .key =OOO0O00000OO0OOOO [2 ]#line:169
        O0OO0O000OO0OO00O .tsuids =OOO0O00000OO0OOOO [3 ]#line:170
        O0OO0O000OO0OO00O .o0o0o0o0o ='%b7'#line:171
        O0OO0O000OO0OO00O .getHomePage ()#line:172
        O0OO0O000OO0OO00O .headers ={'Accept':'application/json, text/javascript, */*; q=0.01','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','a_h_n':O0OO0O000OO0OO00O .a_h_n_i ,'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','Origin':f'http://{O0OO0O000OO0OO00O.mainHost}','Referer':f'http://{O0OO0O000OO0OO00O.mainHost}/','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh',}#line:182
    def setstatus (O00OOOO0O000OO00O ):#line:184
        try :#line:185
            OO000OOO0OOOO0OOO ='http://175.24.153.42:8882/setstatus'#line:186
            O0O0O0O0O0OO00O0O ={'key':O00OOOO0O000OO00O .key ,'type':'ydz','val':'1'}#line:187
            O0OOOO00000O0OO00 =requests .get (OO000OOO0OOOO0OOO ,params =O0O0O0O0O0OO00O0O ,timeout =10 )#line:188
            print (O00OOOO0O000OO00O .name ,O0OOOO00000O0OO00 .text )#line:189
        except Exception as OOO00O000OOOO0O00 :#line:190
            print (O00OOOO0O000OO00O .name ,'设置状态异常')#line:191
            print (O00OOOO0O000OO00O .name ,OOO00O000OOOO0O00 )#line:192
    def getstatus (OO00OOOOO0O0OOOOO ):#line:194
        try :#line:195
            O0O00000OOOO00O00 ='http://175.24.153.42:8882/getstatus'#line:196
            O0OOOO00O00OOOOO0 ={'key':OO00OOOOO0O0OOOOO .key ,'type':'ydz'}#line:197
            O00OO0O0OO0O0OO00 =requests .get (O0O00000OOOO00O00 ,params =O0OOOO00O00OOOOO0 ,timeout =3 )#line:198
            return O00OO0O0OO0O0OO00 .text #line:199
        except Exception as O0OO0OO0OO000O0O0 :#line:200
            print (OO00OOOOO0O0OOOOO .name ,'查询状态异常',O0OO0OO0OO000O0O0 )#line:201
            return False #line:202
    def printjson (OO0OOO0O0O00OO000 ,O0OOO000O0OO0O0OO ):#line:204
        if printf ==0 :#line:205
            return #line:206
        print (OO0OOO0O0O00OO000 .name ,O0OOO000O0OO0O0OO )#line:207
    def getHomePage (OO0OO00O00000OO0O ):#line:209
        OO0OOO000OO0OOO0O ='http://5851249352.goeedpp.cn/?jgwq=3343316&goid=itrb'#line:210
        OO0OO00O00000OO0O .o0o0o0o0 ='%e4%bd%a0%e7%94%a8%e7%9a%84%e8%'#line:211
        O0OO00OO000O0000O ={'Host':'5851249352.goeedpp.cn','Upgrade-Insecure-Requests':'1','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh',}#line:219
        OO0OO00O00000OO0O .oo00o0o0 ='84%9a%e6%9c%ac%e4%b8%8d%e6%98%af%e5%8e%9f%e7%89%88%e8%af'#line:221
        O0O00O000OOO0O000 =requests .get (OO0OOO000OO0OOO0O ,headers =O0OO00OO000O0000O ,allow_redirects =False )#line:222
        OO0OOO00OOO00O0OO =O0O00O000OOO0O000 .headers #line:223
        O0O0O00OOOO0OOOOO =OO0OOO00OOO00O0OO .get ('Location')#line:224
        OO0OO00O00000OO0O .oo0o00o0o0 ='%e4%b8%8b%e8%bd%bd%e5%8e%9f%e7%89%88%ef%bc%81'#line:225
        if O0O0O00OOOO0OOOOO ==None :#line:227
            print ('获取主页地址失败，尝试使用默认')#line:228
            O0O0O00OOOO0OOOOO ='http://5851571479.uzwxeze.cn/?jgwq=3343316&goid=itrb'#line:229
        OO0OO00O00000OO0O .mainHost =urlparse (O0O0O00OOOO0OOOOO ).netloc #line:230
        OO0OO00O00000OO0O .O0O0000O0 =hashlib .md5 (ydz .encode ()).hexdigest ()#line:231
        OO0OO00O00000OO0O .oo00o0o0000 =OO0OO00O00000OO0O .o0o0o0o0o +OO0OO00O00000OO0O .oo0o00o0o0 #line:232
        OOO0OO0OO0OOOOOOO =f'http://{OO0OO00O00000OO0O.mainHost}/?jgwq=3343316&goid=itrb'#line:233
        OOO00O0O0OO0OO0O0 =f'http://{OO0OO00O00000OO0O.mainHost}/?a=gt&goid=itrb&_v=3890'#line:234
        OO0OO00O00000OO0O .a_h_n_i =quote (OOO0OO0OO0OOOOOOO ,safe ='')+f'/{OO0OO00O00000OO0O.ck}'#line:235
        OO0OO00O00000OO0O .oo0o00o0o =OO0OO00O00000OO0O .o0o0o0o0 +OO0OO00O00000OO0O .oo00o0o0 #line:237
        OO0OO00O00000OO0O .a_h_n_r =quote (OOO00O0O0OO0OO0O0 ,safe ='')+f'/{OO0OO00O00000OO0O.ck}'#line:238
    def getinfo (O00O00O0O0O0000O0 ):#line:242
        OOO0O0O000OO000OO ="http://wxr.jjyii.com/user/getinfo?v=3 "#line:243
        O00O0OOO0OO00O000 =requests .post (OOO0O0O000OO000OO ,headers =O00O00O0O0O0000O0 .headers )#line:244
        OOO00OOOO0OO00OO0 =O00O0OOO0OO00O000 .json ()#line:245
        O0O0000O00OOO00OO =O00O00O0O0O0000O0 .getAASKey (O00O00O0O0O0000O0 .O0O0000O0 )#line:246
        if OOO00OOOO0OO00OO0 .get ('code')==-4001 :#line:247
            print (O00O00O0O0O0000O0 .name ,'ck失效，请检测你的ck是否填写正确，或者手动打开活动查看活动是否正常')#line:248
            print (O00O00O0O0O0000O0 .name ,O00O0OOO0OO00O000 .text )#line:249
            return False #line:250
        if O0O0000O00OOO00OO !='a029873daafe51f19b46c4cdb6c7c960':#line:251
            print (O00O00O0O0O0000O0 .name ,unquote (O00O00O0O0O0000O0 .oo0o00o0o +O00O00O0O0O0000O0 .oo00o0o0000 ))#line:252
            return False #line:253
        O0OO0O0000O00O0O0 =OOO00OOOO0OO00OO0 .get ('data')#line:254
        O00O00O0O0O0000O0 .balance =O0OO0O0000O00O0O0 ['balance']#line:255
        O0O000OOOO0OOO0O0 =O0OO0O0000O00O0O0 ['count']#line:256
        OOO0OOO0O0OOO0O0O =O0OO0O0000O00O0O0 ['income']#line:257
        OOO0O00O0O0OOOO00 =O0OO0O0000O00O0O0 ['price']#line:258
        print (O00O00O0O0O0000O0 .name ,f'当前金币：{O00O00O0O0O0000O0.balance}，累计金币：{OOO0OOO0O0OOO0O0O}，累计已读：{O0O000OOOO0OOO0O0}，每篇价格：{OOO0O00O0O0OOOO00}')#line:259
    def getReadInfo (O0O0O0OOOO0OOO0OO ):#line:261
        O0O0O0OOOO0OOO0OO .headers .update ({'a_h_n':O0O0O0OOOO0OOO0OO .a_h_n_r })#line:262
        O0OO0OOOO0OOOOOO0 ='http://wxr.jjyii.com/r/get?v=10'#line:263
        OOOOOOO00O0OO00O0 =f'o={O0O0O0OOOO0OOO0OO.a_h_n_r}&t=quick'#line:264
        OO000OOO00OOO0O0O =requests .post (O0OO0OOOO0OOOOOO0 ,headers =O0O0O0OOOO0OOO0OO .headers ,data =OOOOOOO00O0OO00O0 )#line:265
        OOOO0O0O00OO0OOOO =OO000OOO00OOO0O0O .json ()#line:267
        OO0O0O000OOOOO0OO =OOOO0O0O00OO0OOOO .get ('data').get ('url')#line:269
        if OO0O0O000OOOOO0OO !=None :#line:270
            O0OO0OOOO00OO0000 =urlparse (OO0O0O000OOOOO0OO ).netloc #line:272
            OOO0OO0000O0OOO0O =parse_qs (urlparse (OO0O0O000OOOOO0OO ).query )#line:273
            OOO0OO000OO000OO0 ={'Host':O0OO0OOOO00OO0000 ,'Upgrade-Insecure-Requests':'1','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh',}#line:283
            OO000OOO00OOO0O0O =requests .get (OO0O0O000OOOOO0OO ,headers =OOO0OO000OO000OO0 )#line:284
            O0OOO00O0OO00O0OO =OOO0OO0000O0OOO0O .get ('qlru')[0 ]#line:285
            O0OO0OOOO00OO0000 =urlparse (O0OOO00O0OO00O0OO ).netloc #line:287
            OOO0OO000OO000OO0 .update ({'Host':O0OO0OOOO00OO0000 })#line:289
            OO000OOO00OOO0O0O =requests .get (O0OOO00O0OO00O0OO ,headers =OOO0OO000OO000OO0 )#line:290
            OOOOO0OOOOOO0OOOO =f'http://{O0OO0OOOO00OO0000}/?a=gt&goid=itrb&_v=3890'#line:291
            O0O0O0OOOO0OOO0OO .a_h_n_d =quote (OOOOO0OOOOOO0OOOO ,safe ='')+f'/{O0O0O0OOOO0OOO0OO.ck}'#line:292
            OOOO0O00OOOO0OOO0 ={'Host':'wxr.jjyii.com','Accept':'application/json, text/javascript, */*; q=0.01','a_h_n':O0O0O0OOOO0OOO0OO .a_h_n_d ,'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','Origin':f'http://{O0OO0OOOO00OO0000}','Referer':f'http://{O0OO0OOOO00OO0000}/','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh',}#line:304
            return OOOO0O00OOOO0OOO0 #line:305
        else :#line:306
            print (O0O0O0OOOO0OOO0OO .name ,'当前暂无文章可读')#line:307
            print (O0O0O0OOOO0OOO0OO .name ,OOOO0O0O00OO0OOOO )#line:308
            return False #line:309
    def read (O0O000O0OOOO0000O ):#line:312
        O00OO00OO000OO0O0 =O0O000O0OOOO0000O .getReadInfo ()#line:313
        if O00OO00OO000OO0O0 ==False :return False #line:314
        for O000O0O0000OO000O in range (100 ):#line:315
            print (O0O000O0OOOO0000O .name ,'-'*30 )#line:316
            O000OO000000OO0OO =f"http://wxr.jjyii.com/r/get?v=10"#line:317
            O0OOOO0OOO00O0OO0 =f'o={O0O000O0OOOO0000O.a_h_n_d}&t=quick'#line:318
            O0O0O000OOOO0OO00 =requests .post (O000OO000000OO0OO ,headers =O00OO00OO000OO0O0 ,data =O0OOOO0OOO00O0OO0 )#line:319
            O00000O000OO0O0OO =O0O0O000OOOO0OO00 .json ()#line:320
            OOO00O00OOO000O0O =O00000O000OO0O0OO .get ('data').get ('url')#line:322
            if OOO00O00OOO000O0O !=None :#line:323
                OOO0OOOOOOO0O00O0 =getinfo (OOO00O00OOO000O0O )#line:325
                if O0O000O0OOOO0000O .testCheck (OOO0OOOOOOO0O00O0 ,OOO00O00OOO000O0O )==False :#line:326
                    return False #line:327
                OOO000O000000O0O0 =random .randint (10 ,15 )#line:328
                print (O0O000O0OOOO0000O .name ,f'本次模拟读{OOO000O000000O0O0}秒')#line:329
                time .sleep (OOO000O000000O0O0 )#line:330
                O0O000O0OOOO0000O .submit (O00OO00OO000OO0O0 )#line:331
            else :#line:332
                O00O00OOO00OOOOOO =O00000O000OO0O0OO .get ('code')#line:333
                if O00O00OOO00OOOOOO ==0 :#line:334
                    OO0O0O0O0O0OOOOOO =O00000O000OO0O0OO .get ('data')#line:335
                    if OO0O0O0O0O0OOOOOO ['uiv']==0 :#line:336
                        if OO0O0O0O0O0OOOOOO ['hs']>0 :#line:337
                            print (O0O000O0OOOO0000O .name ,f'下一轮文章到来倒计时{int(OO0O0O0O0O0OOOOOO["hs"])}分钟')#line:338
                        else :#line:339
                            print (O0O000O0OOOO0000O .name ,'文章更新中,请稍候再试')#line:340
                    else :#line:341
                        print (O0O000O0OOOO0000O .name ,'请明天再来阅读')#line:342
                print (O0O000O0OOOO0000O .name ,O00000O000OO0O0OO )#line:343
                return False #line:344
    def testCheck (OO00OO0000O0OO0O0 ,OOOO0OO0OOO00O0O0 ,O0O00O0O00O000OOO ):#line:346
        if OOOO0OO0OOO00O0O0 ==False :#line:347
            print (OO00OO0000O0OO0O0 .name ,'解析文章链接失败')#line:348
            return True #line:349
        if OOOO0OO0OOO00O0O0 [4 ]==[]:#line:350
            print (OO00OO0000O0OO0O0 .name ,'这个链接没有获取到微信号id',O0O00O0O00O000OOO )#line:351
            return True #line:352
        if (checkDict .get (OOOO0OO0OOO00O0O0 [4 ])!=None )or ('chksm'in O0O00O0O00O000OOO ):#line:353
            OO00OO0000O0OO0O0 .setstatus ()#line:354
            for OOOOO0OO00000OO0O in range (60 ):#line:355
                if OOOOO0OO00000OO0O %30 ==0 :#line:356
                    push ('阅读赚过检测',O0O00O0O00O000OOO ,OOOO0OO0OOO00O0O0 [3 ],'ydz',OO00OO0000O0OO0O0 .tsuids ,OO00OO0000O0OO0O0 .key )#line:357
                OO00OOOOOO0OO0OOO =OO00OO0000O0OO0O0 .getstatus ()#line:358
                if OO00OOOOOO0OO0OOO =='0':#line:359
                    print (OO00OO0000O0OO0O0 .name ,'过检测文章已经阅读')#line:360
                    return True #line:361
                elif OO00OOOOOO0OO0OOO =='1':#line:362
                    print (OO00OO0000O0OO0O0 .name ,f'正在等待过检测文章阅读结果{OOOOO0OO00000OO0O}秒。。。')#line:363
                    time .sleep (1 )#line:364
                else :#line:365
                    print (OO00OO0000O0OO0O0 .name ,f'服务器异常{OOOOO0OO00000OO0O}秒。。。')#line:366
                    time .sleep (1 )#line:367
            print (OO00OO0000O0OO0O0 .name ,'过检测超时中止脚本防止黑号')#line:368
            return False #line:369
        else :#line:370
            return True #line:371
    def submit (O0000O0O0OOO0OO00 ,OOOOO0O0O0OO0O000 ):#line:373
        O0000OOOOOO0O00O0 ='http://wxr.jjyii.com/r/ck'#line:374
        O000O0O0O00OO000O ='t=quick'#line:375
        O0O00OOO0O0O0O000 =requests .post (O0000OOOOOO0O00O0 ,headers =OOOOO0O0O0OO0O000 ,data =O000O0O0O00OO000O )#line:376
        O00O0O0O00OOOO0OO =O0O00OOO0O0O0O000 .json ()#line:378
        if O00O0O0O00OOOO0OO .get ('ret')==True :#line:379
            OOOO00O000O0O000O =O00O0O0O00OOOO0OO .get ('data')#line:380
            O0000O0O0OOO0OO00 .balance =OOOO00O000O0O000O ['balance']#line:381
            O0OOO0OOO0OO00O00 =OOOO00O000O0O000O ['count']#line:382
            O00OO00O0OOOOO0O0 =OOOO00O000O0O000O ['income']#line:383
            print (O0000O0O0OOO0OO00 .name ,f'当前金币：{O0000O0O0OOO0OO00.balance}，累计金币：{O00OO00O0OOOOO0O0}，累计已读：{O0OOO0OOO0OO00O00}')#line:384
            return True #line:385
        else :#line:386
            print (O0000O0O0OOO0OO00 .name ,O0O00OOO0O0O0O000 .text )#line:387
            print (O0000O0O0OOO0OO00 .name ,'异常,尝试继续阅读')#line:388
        time .sleep (3 )#line:389
    def getAASKey (OOOOOO0000O0OO00O ,O0OOOOO0O0OOO000O ):#line:392
        OOOO0000OOOOO0OOO =[]#line:393
        OO00OOOOOOO00OO0O =[]#line:394
        for OOO00OOO0OOO0OOO0 in range (len (O0OOOOO0O0OOO000O )):#line:395
            if OOO00OOO0OOO0OOO0 %2 ==0 :#line:396
                OO00OOOOOOO00OO0O .append (O0OOOOO0O0OOO000O [OOO00OOO0OOO0OOO0 ])#line:397
            else :#line:398
                OOOO0000OOOOO0OOO .append (O0OOOOO0O0OOO000O [OOO00OOO0OOO0OOO0 ])#line:399
        O000O000OO00O000O =''.join (OO00OOOOOOO00OO0O )+''.join (OOOO0000OOOOO0OOO )#line:400
        O0OOOO000O0OOO0OO =hashlib .md5 (O000O000OO00O000O .encode ()).hexdigest ()#line:401
        return O0OOOO000O0OOO0OO #line:402
    def cash (OOO000O0O00OOO000 ):#line:405
        if OOO000O0O00OOO000 .balance <txbz :#line:406
            print (OOO000O0O00OOO000 .name ,'提现结果','没有达到提现标准')#line:407
            return False #line:408
        O0000O00O0O0OOO00 =f'http://{OOO000O0O00OOO000.mainHost}/mine/cash?goid=itrb'#line:409
        OO000OO00000O000O ={'Host':OOO000O0O00OOO000 .mainHost ,'Upgrade-Insecure-Requests':'1','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','Referer':f'http://{OOO000O0O00OOO000.mainHost}/?jgwq=3343316&goid=itrb','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh','Cookie':f'7bfe3c8f4d51851={OOO000O0O00OOO000.ck}',}#line:419
        OO00OOO0OO0O00OO0 =requests .get (O0000O00O0O0OOO00 ,headers =OO000OO00000O000O ,allow_redirects =False )#line:420
        O00O0OOOO00OOOO0O =OO00OOO0OO0O00OO0 .headers #line:421
        OO0OO00OO0OOO0O0O =OOO000O0O00OOO000 .getAASKey (str (OOO000O0O00OOO000 .balance ))#line:422
        O0000OO00000OOOOO =O00O0OOOO00OOOO0O .get ('Location')#line:423
        print ('获取到的主页是',O0000OO00000OOOOO )#line:424
        if O0000OO00000OOOOO ==None :#line:425
            print ('获取提现主页地址失败，请尝试手动提现')#line:426
            return False #line:427
        O0O00OOO0OO0OOO0O =f'http://{OOO000O0O00OOO000.mainHost}{O0000OO00000OOOOO}'#line:428
        O0O00O00OOO0OO00O ={'Host':'wxr.jjyii.com','Accept':'application/json, text/javascript, */*; q=0.01','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090719) XWEB/8391 Flue','a_h_n':f'{quote(O0O00OOO0OO0OOO0O, safe="")}/{OOO000O0O00OOO000.ck}','Origin':f'http://{OOO000O0O00OOO000.mainHost}','Referer':f'http://{OOO000O0O00OOO000.mainHost}/','Accept-Encoding':'gzip, deflate','Accept-Language':'zh-CN,zh',}#line:438
        O0000O00O0O0OOO00 =f"http://wxr.jjyii.com/mine/cash"#line:439
        OO00OOO0OO0O00OO0 =requests .post (O0000O00O0O0OOO00 ,headers =O0O00O00OOO0OO00O )#line:440
        print (OOO000O0O00OOO000 .name ,'提现结果',OO00OOO0OO0O00OO0 .text )#line:441
    def run (O00OO000000OOOOO0 ):#line:443
        if O00OO000000OOOOO0 .getinfo ()!=False :#line:444
            time .sleep (5 )#line:445
            O00OO000000OOOOO0 .read ()#line:446
            print (O00OO000000OOOOO0 .name ,'-'*30 )#line:447
            time .sleep (5 )#line:448
            O00OO000000OOOOO0 .cash ()#line:449
if __name__ =='__main__':#line:451
    pushconfig =os .getenv ('push_config')#line:452
    if pushconfig ==None :#line:453
        print ('请检查你的推送变量名称是否填写')#line:454
        exit (0 )#line:455
    try :#line:456
        pushconfig =json .loads (pushconfig .replace ("'",'"'))#line:457
    except Exception as e :#line:458
        print (e )#line:459
        print (pushconfig )#line:460
        print ('请检查你的推送变量参数是否填写正确')#line:461
        exit (0 )#line:462
    ydzconfig =os .getenv ('ydz_config')#line:463
    if ydzconfig ==None :#line:464
        print ('请检查你的阅读赚脚本变量名称是否填写')#line:465
        exit (0 )#line:466
    try :#line:467
        ydzconfig =json .loads (ydzconfig .replace ("'",'"'))#line:468
    except Exception as e :#line:469
        print (e )#line:470
        print (ydzconfig )#line:471
        print ('请检查你的阅读赚脚本脚本变量参数是否填写正确')#line:472
        exit (0 )#line:473
    printf =pushconfig ['printf']#line:474
    appToken =pushconfig ['appToken']#line:475
    threadingf =pushconfig ['threadingf']#line:476
    getmsg ()#line:477
    txbz =3000 #line:478
    tl =[]#line:479
    if threadingf ==1 :#line:480
        for i in ydzconfig :#line:481
            cg =i .split ('|')#line:482
            print ('*'*50 )#line:483
            print (f'开始执行{i[0]}')#line:484
            api =WXYD (cg )#line:485
            t =threading .Thread (target =api .run ,args =())#line:486
            tl .append (t )#line:487
            t .start ()#line:488
            time .sleep (0.5 )#line:489
        for t in tl :#line:490
            t .join ()#line:491
    elif threadingf ==0 :#line:492
        for i in ydzconfig :#line:493
            cg =i .split ('|')#line:494
            print ('*'*50 )#line:495
            print (f'开始执行{cg[0]}')#line:496
            api =WXYD (cg )#line:497
            api .run ()#line:498
            print (f'{cg[0]}执行完毕')#line:499
            time .sleep (3 )#line:500
    else :#line:501
        print ('请确定推送变量中threadingf参数是否正确')#line:502
    print ('全部账号执行完成')#line:503
